﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace ESSManageService.Model.DBModels
{
    public class DbBase
    {
        /// <summary>
        /// 创建者
        /// </summary>
        [SugarColumn(Length = 50, IsNullable = false, ColumnDescription = "创建者")]
        public long CreateBy { get; set; } = 1;
        /// <summary>
        ///创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time", IsNullable = false, ColumnDescription = "创建时间", ColumnDataType = "datetime(3)")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [SugarColumn(ColumnName = "remark", IsNullable = true, Length = 200, ColumnDescription = "备注")]
        public string Remark { get; set; }

        /// <summary>
        /// 修改者
        /// </summary>
        [SugarColumn(Length = 50, ColumnName = "modify_By", IsNullable = true, ColumnDescription = "修改者")]
        public long ModifyBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "modify_time", IsNullable = true, ColumnDescription = "更新时间", ColumnDataType = "datetime(3)")]
        public DateTime? UpdateTime { get; set; }
    }
}
